package cn.xk.controller;

import cn.xk.service.ISeachService;
import cn.xk.ymcc.domain.dto.EsDto;
import cn.xk.ymcc.result.JSONResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/search")
public class SearchController {
    @Autowired
    private ISeachService seachService;
    @RequestMapping(value = "/save",method = RequestMethod.POST )
    public JSONResult save(@RequestBody EsDto esDto){
        seachService.save(esDto);
        return JSONResult.success();

    }
}
